package com.bop.dehong.http.model;

import java.lang.reflect.Type;

import com.base.dehong.http.HttpRequest;
import com.base.dehong.http.RequestCallBack;
import com.bop.dehong.base.DeHongApp;
import com.bop.dehong.config.Config;
import com.bop.dehong.info.WithdrawCalculateInfo;
import com.google.gson.reflect.TypeToken;

import android.app.Activity;

/**
* @author Tangwenhan
*2015年11月30日上午11:43:54
*/
public class WithdrawCalculateModel extends HttpRequest<WithdrawCalculateInfo>{

	public WithdrawCalculateModel(Activity activity, RequestCallBack<WithdrawCalculateInfo> callback) {
		super(activity, callback);
		// TODO Auto-generated constructor stub
	}
	/**
	 * 提现申请 计算
	 * @param money 提现的钱
	 * @param cashchl  IMMEDIATE 即时 ，     GENERAL 普通，    FAST 快速
	 */
	public void doNet(String uid, String money,String cashchl) {
		mPostValues.put("a", "drawcalc");
		mPostValues.put("cashchl", cashchl);
		mPostValues.put("m", "User");
		mPostValues.put("money", money);
		mPostValues.put("uid", uid);
		requestByPost();
	}

	@Override
	public String getURL() {
		return Config.getIP() + Config.drawcalc;
	}

	@Override
	public Type getType() {
		return new TypeToken<WithdrawCalculateInfo>() {}.getType();
	}
	
	@Override
	public Class<WithdrawCalculateInfo> getClazz()
	{
		return WithdrawCalculateInfo.class;
	}

}

